% GAUTIER LE BIHAN - 2020
% Replication files for "Shocks vs Menu Costs: Patterns of Price Rigidity in an Estimated Multi-Sector Menu-Cost Model?" Review of Economics and Statistics
%
% Table D

clear;
tic
addpath('..\..\Utilities')  
load actual_moments_k

load ..\..\Estimation_param\MS_produits_MC\param
s=227

stat=zeros(s,16);
for jj=1:s;
    p0=0;
    mu_c=param(jj,1);
    sig_eps_a=exp(param(jj,2));
    rho_a=0.6946; 
    
    weight_j=actual_moments_k(jj,12)/100;

    sm_m=0;
    param_e=[p0 mu_c sig_eps_a rho_a];
%     moments=[freq  fracup med interq kur absq1 absq3 share_Calvo mu_p MC_paid];
%     VC=(VARrad^(1/2))*100; 
   [moments, VC]=geNCalvoPlus_VC(p0, mu_c, sig_eps_a, rho_a, weight_j);
 %moments=[freq  fracup med interq kur absq1 absq3 share_Calvo mu_p MC_paid];
  stat4b(jj,:)=[ param_e moments VC];
jj
  save stat4b stat4b;
end
